package com.example.demo.service.impl;

import com.example.demo.service.SingletonAndThreadService;
import org.springframework.stereotype.Service;

@Service
public class SingletonAndThreadServiceImpl implements SingletonAndThreadService {
    @Override
    public void show(int i) throws InterruptedException {
        Thread.sleep(1000);
        System.out.println(i);
    }

}
